package com.deere.workprocedure.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.deere.model.WorkingProcedure;
import com.deere.workprocedure.service.WorkingProcedureService;

public class WorkingProcedureAction {
	/*
	 * 
	 */
	private Integer itemId;
	
	private List<WorkingProcedure> wProcedures;
	@Autowired
	private WorkingProcedureService wpService;
	
	/**
	 * 根据ITEM_ID查询
	 * @return
	 */
	public String queryWorkingProcedureByItemId(){
		wProcedures = wpService.searchWorkingProcedureById(itemId);
		return "queryWorkingProcedureByItemId";
	}
	
	public Integer getItemId() {
		return itemId;
	}

	public void setItemId(Integer itemId) {
		this.itemId = itemId;
	}

	public List<WorkingProcedure> getWProcedures() {
		return wProcedures;
	}

	public void setWProcedures(List<WorkingProcedure> procedures) {
		wProcedures = procedures;
	}
}
